package com.aaa.moneymanage.feign;

import com.aaa.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 根据手机号查询当前用户的信息
 */
@FeignClient(value = "his-open-stock")
public interface InvenoryFeign {
    /**
     *修改库存
     * @return
     */
    @PostMapping("/stock/charge/down")
    void downInvenory(@RequestBody Map<String, BigDecimal> map);
}
